-- GENERATED SPELL FOR [Forgotten Captain] --


function spell0_27220(pUnit, Event) --@Stormhammer,n/a--
pUnit:FullCastSpellOnTarget(51591,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27220', 2336, 1)
end

function Sorts_27220(pUnit, Event)
local choix_sorts_27220 = math.random(0, 0)
if choix_sorts_27220 == 0 then
pUnit:RegisterEvent('spell0_27220', 1, 1)
end
end

function mob27220_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27220', math.random(1500, 3000), 1)
end

function mob27220_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27220_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27220_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27220, 1, 'mob27220_Action')
RegisterUnitEvent(27220, 2, 'mob27220_Leave')
RegisterUnitEvent(27220, 3, 'mob27220_Kill')
RegisterUnitEvent(27220, 4, 'mob27220_Die')
